﻿Imports System.Drawing
Imports System.Data.Common.CommandTrees.ExpressionBuilder

Public Class Stock
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim limite As Integer
        Dim valoresLimites = New Integer() {100, 200, 5, 5, 50, 30, 123}
        For Each row As GridViewRow In GridView1.Rows
            limite = CType(row.Cells(2).Text, Integer)
            If limite < valoresLimites(row.RowIndex) Then
                row.ForeColor = Color.Red
                row.Cells(4).Text = "Si"
            End If


        Next




    End Sub

    Protected Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView1.SelectedIndexChanged

    End Sub
End Class